package com.gxa.park.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mincheung
 * @since 2022-07-18
 */
@TableName("tb_pda")
@ApiModel(value = "Pda对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Pda implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键自增长id")
      @TableId(value = "pd_id", type = IdType.AUTO)
    private Integer pdId;

    @ApiModelProperty("设备编号")
    @TableField("pd_number")
    private String pdNumber;

    @ApiModelProperty("设备名称")
    @TableField("pd_name")
    private String pdName;

    @ApiModelProperty("外键街道表")
    @TableField("pd_street")
    private Integer pdStreet;

    @ApiModelProperty("当前使用者巡检员")
    @TableField("pd_inspector")
    private String pdInspector;

    @ApiModelProperty("当前设备状态1、在线2、离线")
    @TableField("pd_status")
    private Integer pdStatus;

    @ApiModelProperty("时间")
    @TableField("pa_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime paTime;

}
